package com.mecol.library.service;

import com.mecol.library.entity.Book;
import com.mecol.library.entity.BookSearch;
import com.mecol.library.util.ResultUtil;

import java.util.List;

public interface BookService {
    ResultUtil getAllBookList(Integer page, Integer limit, BookSearch search);

    void addNewBook(Book book);

    Book getBookById(int book_id);

    ResultUtil updateBook(Book book);

    ResultUtil deleteBookById(int book_id);

    List<Book> getAllBooks();
}
